<%--
  Created by IntelliJ IDEA.
  User: Aamir
  Date: 2018/3/13
  Time: 17:40
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>物品显示</title>
    <%@include file="_header.jsp" %>
</head>
<body>
<%@include file="_navbar.jsp" %>
<div class="container">

    <%--<c:set var="goodssize" value="${requestScope.goodssize}"/>--%>
    <%--<c:set var="goodsPerPage" value="${requestScope.goodsPerPage}"/>--%>
    <%--<c:set var="PagesSize" value="${requestScope.PagesSize}"/>--%>
    <%--<c:set var="beginIndex" value="${requestScope.beginIndex}"/>--%>
    <%--<c:set var="endIndex" value="${requestScope.endIndex}"/>--%>
    <%--<c:set var="page" value="${requestScope.page}"/>--%>
    <%--<c:set var="currentPageGoods" value="${requestScope.goodsList.subList(beginIndex,endIndex)}"/>--%>

    <table class="table table-hover table-responsive table-striped table-bordered">
        <thead>
        <tr>
            <td>名称</td>
            <td>图片链接</td>
            <td>介绍</td>
            <td>日期</td>
            <td>价格</td>
            <td>操作</td>
        </tr>
        </thead>
        <tbody>
        <c:forEach var="gs" items="${goodsList}">
            <tr>
                <td>${gs.name}</td>
                <td>${gs.imgUrl}</td>
                <td>${gs.content}</td>
                <td>${gs.date}</td>
                <td>${gs.price}</td>
                <td><a href="androidserver?msg=webdeletegoods&goodsid=${gs.id}">删除</a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>

    <hr>



</div>
</body>
</html>
